#pragma once

#include<iostream>

using namespace std;

class Date
{
public:
	Date(int year = 0, int month = 0, int day = 0);

	void Print()
	{
		cout << _year << "-" << _month << "-" << _day << endl;
	}

	Date(const Date& d)
	{
		_year = d._year;
		_month = d._month;
		_day = d._day;
	}


	Date operator=(const Date& d);

	bool operator>(const Date& d);
	bool operator>=(const Date& d);

	bool operator<(const Date& d);
	bool operator<=(const Date& d);

	bool operator==(const Date& d);
	bool operator!=(const Date& d);


	int GetMonthDay(int year, int month);
	Date& operator+=(int day);
	Date operator+(int day);

	Date& operator-=(int day);
	Date operator-(int day);


	~Date()
	{
		_year = _month = _day = 0;
	}

private:
	int _year;
	int _month;
	int _day;
};